package com.service.impl;

import com.dao.IMyip;
import com.model.MyIp;
import com.service.MyipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.List;

@Service
public class MyipServiceimpl implements MyipService {

    @Autowired
    private IMyip iMyip;

    @Override
    public int addMyIp(MyIp myIp) {
        return iMyip.addMyIp(myIp);
    }

    @Override
    public int updateMyIp(MyIp myIp) {
        return iMyip.updateMyIp(myIp);
    }

    @Override
    public int deleteMyIp(int userid) {
        return iMyip.deleteMyIp(userid);
    }

    @Override
    public MyIp getMyIpByUserid(int userid) {
        return iMyip.getMyIpByUserid(userid);
    }

    @Override
    public List<MyIp> getMyIpByTime(int data1, int data2) {
        return iMyip.getMyIpByTime(data1,data2);
    }
}
